package cn.edu.nuc.onlinestore.Person;

import java.io.Serializable;

public class Admin implements Serializable{

	private String username;
	private String password;
	
	//把管理员信息写入文件	 
	/*File dir=new File("D:/store/admin");
	 
		if(!dir.exists()){
			 dir.mkdirs();
	}
	
	Boolean bool=ObjectStream.Write("admin/"+admin.getUsername()+".txt", admin);
	if(bool==true){
		JOptionPane.showMessageDialog(null, "成功");
	}*/
	public Admin(){}
	public Admin(String username,String password){
		this.username=username;
		this.password=password;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
